# -*- coding: utf-8 -*-

import scrapy

from tutorial.items import TutorialItem


class HupuSpider(scrapy.spiders.Spider):
    name = "qsbk"
    allowed_domains = ["qiushibaike.com"]
    start_urls = [
        "https://www.qiushibaike.com/"
    ]

    def parse(self, response):
        print(response)
        # self.log('A response from %s just arrived!' % response.url)
        # for sel in response.xpath('//dl[@class="gray-list main-stem max250"]/dd'):
        #     item = TutorialItem()
        #     item['title'] = sel.xpath('a/text()').extract()
        #     item['link'] = sel.xpath('a/@href').extract()
        #     yield item


